Parametrizations of elliptic curves by Shimura curves and by classical modular curves