Isomerization behavior of photochromic molecules in direct contact with noble metal surfaces