remove duplicated code from gridcells.analysis.info
fix handling of NaNs in the information rate functions