Lamb and Purcell effects on 2D excitons