Optimizing the moderator geometry and thickness for a reactor-based slow positron source