Deformation and orientation effects in the driving potential of the dinuclear model