Relationship between surface superconductivity, bulk superconductivity and the peak effect in MgB2 single crystals