Proton production cross sections for 14C from silicon and oxygen: implications for cosmic-ray studies