Nanocrystalline semiconductor/metal phthalocyanine hybrid-junctions: applications in photoelectrochemical and sensor devices