Principal pivot transforms of quasidefinite matrices and semidefinite lagrangian subspaces