Vibration Spectra, Structure, and Phase Transition in Neodymium and Gadolinium Bromate Enneahydrates