Solving Heterogeneous Agent Models with Physics-informed Neural Networks