Validation of prompt gamma-ray spectroscopy for proton range verification in tissue-mimicking and porcine samples