Traces of singular moduli on Hilbert modular surfaces