Radiation-driven implosion of molecular cloud cores