A compact and economical injector for free electron lasers