Topics in multiscale modeling: numerical analysis and applications