Second- and third-harmonic generation in metal-based structures