Ground state properties of trigonal prismatic and trigonal bipyramidal d1,9, d2,8, d3,7, and d5 systems: Effects of trigonal distortion