Self-trapping of excitons and lattice defect production in solid rare gases