Direct observation of a surface resonance state and surface band inversion control in black phosphorus