Defining optical injector parameters for optimal acceleration bunches