MGM Resorts posts quarterly loss on pandemic pain