Effective interaction calculations of energy levels and wave functions in the nuclear 1p shell