The structure of 3-manifolds with two-generated fundamental group