Japan’s solar sector has proved to be a worthy rival to China as it works to reduce costs and maintain its technological lead to take advantage of a growing market for renewable energy, though analysts say the Japanese firms must do more to gain an edge.