Photodissociation of small molecules and generation of laser radiation in rare-gas crystals