Effective interactions in the sd shell