Photodetection using ultrathin metal films