Construction of equilibrated singular basis functions without a priori knowledge of analytical singularity order