The zero-normal-stress condition in plane-stress and shell elastoplasticity