In a Spark MLlib project, you are working with a large dataset and need to perform model evaluation to assess the performance of your machine learning model. Which of the following evaluation metrics can be used in Spark MLlib for regression tasks, and how do they work?