Neural networks applied to the determination of thickness and defocus from high resolution transmission electron microscopy images