High-dimensional ridge regression with random features for non-identically distributed data with a variance profile