The Scottish government has granted planning consent for an up-to-30-MW tidal energy farm being developed by Irish renewables firm DP Energy Ltd.