Simulating open quantum systems in integrated photonics