Synthetic dimensions in integrated photonics: From optical isolation to four-dimensional quantum Hall physics