An ANN-based grid voltage and frequency forecaster