Neural Structure Fields with Application to Crystal Structure Autoencoders