First-principles calculations of the indigo encapsulation and adsorption by MgO nanotubes