Ferromagnetic transition induced by a two-dimensional hole gas in a semimagnetic quantum well