A novel synthetic strategy for magnetite-type compounds. A combined experimental and DFT-computational study