Mass and energy distribution of fission fragments from their ranges in solid state detectors