Negative parity and isobaric analogue states in 31P