No wavefront sensor adaptive optics system for compensation of primary aberrations by software analysis of a point source image. 1. Methods