Crystallographic transitions related to magnetic and electronic phenomena in TM compounds under high pressure