Text this: Autoencoder-Based Representation Learning for Similar Patients Retrieval From Electronic Health Records: Comparative Study