PirateNets: Physics-informed Deep Learning with Residual Adaptive Networks