Efficient neural-network-based no-reference approach to an overall quality metric for JPEG and JPEG2000 compressed images