Failure-informed adaptive sampling for PINNs