Energy levels of light nuclei A=5, 6, 7