A radiation driven implosion model for the enhanced luminosity of protostars near HII regions