How to convert resident demat account to nri demat account

How can I convert my resident Demat account to an NRI Demat account?,