Real and complex symplectic structures. Application to concentration in degree for microfunctions at the boundary