Numerical solutions to transonic flow past airfoils and slender bodies by the integral equation method