Automation of electroweak corrections for LHC processes