Open-shell coupled-cluster theory applied to atomic and molecular systems