Analysis and optimization of a focusing metaldielectric probe for near-field terahertz imaging