Efficient all-sky search of continuous gravitational waves by locally optimum detection