Ab initio Wannier-representation-based calculations of photocurrent in semiconductors and metals | Synapse