High energy resolution bolometers for nuclear physics and X-ray spectroscopy