Under and over-adiabatic electrons through a perpendicular collisionless shock : theory versus simulations