Large Deviations in the Symmetric Simple Exclusion Process with Slow Boundaries