Linear estimation in Krein spaces – Part I: Theory