Method for manufacturing substrate and method or manufacturing electronic device using same