Joint Equalization of Linear and Nonlinear Impairments for PAM4 Short-Reach Direct Detection Systems