A surrogate model for topology optimisation of elastic structures via parametric autoencoders