Inelastic interactions of protons and electrons with biologically relevant molecules