Role of an in-plane ferromagnet in a T-type structure for field-free magnetization switching