On a class of critical Robin problems