Three-dimensional photofabrication with femtosecond lasers for applications in photonics and biomedicine