Dissociation of diatomic molecules into atoms with non-vanishing electronic angular momentum. Theory