A Simple Method to Account for Rayleigh Scattering Effects on photodissociation Rates