Hydrodynamic pressure sensing with an artificial lateral line in steady and unsteady flows