First-principles study of the structural and optoelectronic properties of ANbO3 (A = Na, K and Rb) in four crystal phases