MATPLAN: A probability-based planning tool for cost-effective grid integration of renewable energy