Distorted-wave Born approximation for inelastic collisions: Application to electron capture by positrons from hydrogen atoms