Deep learning-based Edge-aware pre and post-processing methods for JPEG compressed images