Potential model calculation for coplanar and noncoplanar proton-proton bremsstrahlung