A finite element formulation of Mindlin plates for limit analysis