BP's head of safety sells £830k worth of shares ahead of courtroom showdown over 2010 oil spill