Studies of proton irradiated H2O + CO2 and H2O + CO ices and analysis of synthesized molecules