Fixed a couple bugs in calc_rad_loss().  First with an indexing bug when
calculating cumulative radiated losses.  Second, with ensuring temp, em,
and obstime inputs are of same length.
Added error check to beginning of calc_rad_loss() to check that temp and em
inputs are of same length.