Evolution of very low mass stars and brown dwarfs. I. The minimum main-sequence mass and luminosity.