已知三角形ABC周长为4(√2+1)且sinB+sinC=√2sinA求边长a的值,若三角形面积为3sinA求cosA