Nuclear structure in the dinuclear model with rotating clusters