Scotland is on course to smash its renewable energy targets after official figures revealed record-high levels of green power generation.