Geometric phase and controllability of quantum systems