Science with the space-based interferometer LISA. V. Extreme mass-ratio inspirals