Effects of overshoots on electron distributions upstream and downstream of quasi-perpendicular collisionless shocks