Analog front-end and algorithm co-design for efficient biosignal acquisition