Contact mechanics of functionally graded rough surfaces