Biomedical photoacoustics: fundamentals, instrumentation and perspectives on nanomedicine