Semiconductor device and method for fabricating same