SMS dit: Optimal passive and active control mechanisms for seismically excited buildings