Investment in renewable energy and low carbon projects will help Scotland get out of the economic downturn, First Minister Alex Salmond has claimed.