Iran's Rouhani says execution of journalist Zam was based on law