Ultrathin SnTe films as a route towards all-in-one spintronics devices