Semiconductor-ferromagnet-superconductor planar heterostructures for 1D topological superconductivity