Reconstruction of tokamak plasma safety factor profile using deep learning