Selective metallization of silicon and ceramic substrates