Gamma-ray emission in proton-induced nuclear reactions on natC and Mylar targets over the incident energy range of Ep = 30-200 MeV. Astrophysical implications