Pyramid Network With Quality-Aware Contrastive Loss for Retinal Image Quality Assessment