Discovery of TeV gamma-ray emission from the pulsar wind nebula 3C 58 by MAGIC