Nonretarded limit of the Lifshitz theory for a wedge