Continuous and localized Riesz bases for L2 spaces defined by Muckenhoupt weights