An independent Scotland would continue drilling for oil and gas, says net zero secretary