Reduced basis methods and their applications