Complex variable formulations for usual and hypersingular integral equations for potential problems — with applications to corners and cracks