A dose calculation algorithm with correction for proton-nucleus interactions in non-water materials for proton radiotherapy treatment planning