Experimental and theoretical studies of positive pion production on 10B and 40Ca by 163–186 MeV protons