What is the primary purpose of applying an opaque layer in a porcelain-fused-to-metal (PFM) restoration?