Supersonic effects and shock waves in a Bose–Einstein condensate