Superconducting Tunnel Junctions As Energy Resolving Single Photon Detectors