Design considerations for x-ray free electron lasers