Mass and penetration depth of Shoemaker-Levy 9 fragments from time-resolved photometry.