Elliptic functions and equations of modular curves