The consistent Mindlin’s thermopiezoelectric equations and the principle of virtual work