An Elementary Proof of Local Invertibility for Generalized and Attenuated Radon Transforms