Factors governing the charge density wave patterns of layered transition-metal compounds of octahedral coordination with d2 and d3 electron counts | Synapse